home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- puppetSprite(3, 1)
- puppetSprite(4, 1)
- puppetSprite(5, 1)
- puppetSprite(6, 1)
- if the timer < 1767 then
- if the loaded of member "it breathes" = 0 then
- preLoad(member "it breathes")
- end if
- if the loaded of member "ha trees don't" = 0 then
- preLoad(member "ha trees don't")
- end if
- if the loaded of member "it moves" = 0 then
- preLoad(member "it moves")
- end if
- duck1()
- duck2()
- duck3()
- duck4()
- go(the frame)
- else
- sound stop 2
- go(the frame + 1)
- end if
- end
-
- on duck1
- set the locH of sprite 3 to the locH of sprite 3 + random(10)
- set temp to random(2)
- if temp = 1 then
- set the locV of sprite 3 to 301
- else
- set the locV of sprite 3 to 300
- end if
- if the locH of sprite 3 > 690 then
- set the locH of sprite 3 to -50
- end if
- end
-
- on duck2
- set the locH of sprite 4 to the locH of sprite 4 - random(15)
- set temp to random(2)
- if temp = 1 then
- set the locV of sprite 4 to 352
- else
- set the locV of sprite 4 to 351
- end if
- if the locH of sprite 4 < -50 then
- set the locH of sprite 4 to 690
- end if
- end
-
- on duck3
- set the locH of sprite 5 to the locH of sprite 5 + random(15)
- set temp to random(2)
- if temp = 1 then
- set the locV of sprite 5 to 386
- else
- set the locV of sprite 5 to 387
- end if
- if the locH of sprite 5 > 690 then
- set the locH of sprite 5 to -50
- end if
- end
-
- on duck4
- set the locH of sprite 6 to the locH of sprite 6 - random(10)
- set temp to random(2)
- if temp = 1 then
- set the locV of sprite 6 to 418
- else
- set the locV of sprite 6 to 419
- end if
- if the locH of sprite 6 < -50 then
- set the locH of sprite 6 to 690
- end if
- end
-
- on mouseUp
- if (the loaded of member "it breathes" = 0) or (the loaded of member "ha trees don't" = 0) or (the loaded of member "it moves" = 0) then
- if the loaded of member "it breathes" = 0 then
- preLoad(member "it breathes")
- end if
- if the loaded of member "ha trees don't" = 0 then
- preLoad(member "ha trees don't")
- end if
- if the loaded of member "it moves" = 0 then
- preLoad(member "it moves")
- end if
- else
- sound stop 1
- repeat with n = 20 down to 1
- puppetSprite(n, 0)
- set the visible of sprite n to 1
- end repeat
- go(175)
- end if
- end
-